package cn.haoxsf.app.common.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @program: rest
 * @description: 分页对象
 * @author: Ele qvbanfm@qq.com
 * @create: 2019-12-28 13:45
 **/
@Data
@ApiModel(value = "分页对象")
public class PageFactory {
    /*
        每页几条
     */
    @ApiModelProperty(value = "每页几条",example = "5")
    private Integer limit = 5;
    /*
        第几页
     */
    @ApiModelProperty(value = "第几页",example = "1")
    private Integer page = 1;
    @ApiModelProperty(value = "经纬度",required = true,example ="0.0" )
    private Double lat= 0.0;
    @ApiModelProperty(value = "经纬度",required = true,example ="0.0" )
    private Double lng= 0.0;
    @ApiModelProperty(value = "获取内容的方式 All=>全部 ，get=>获取发布者的订单列表",required = true,example ="All" )
    private String mode = "All";
    @ApiModelProperty(value = "按照状态查询订单可以为空 -订单状态:CANCEL-已取消-UNPAID-未付款，PAID-已付款，RECEIVED-已接单，SUCCESS-交易成功，CLOSE-交易关闭,获取我的接单没有 PAID-已付款的状态",example ="All" )
    private String me ;

    public static PageFactory getPageFactory() {
        return new PageFactory();
    }
}
